<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Math</title>
    </head>
    <body>
        <script type="text/javascript">
        var brojN= -5.31;
        var broj= 5.01;
        //alert(Math.abs(brojN));
        alert(Math.ceil(broj));
        alert(Math.floor(broj));
        alert(Math.max(1,10,20));
        alert(Math.min(-1,-5,5));
        alert(Math.round(12.2555,2));
        </script>            
    </body>
</html>